﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Remindme.Model
{
    public class ItemModel
    {
        public string item_id { get; set; }
        public string resolved_id { get; set; }
        public string given_url { get; set; }
        public string given_title { get; set; }
        public string favorite { get; set; }
        public string status { get; set; }
        public string time_added { get; set; }
        public string time_updated { get; set; }
        public string time_read { get; set; }
        public string time_favorited { get; set; }
        public int sort_id { get; set; }
        public string resolved_title { get; set; }
        public string resolved_url { get; set; }
        public string excerpt { get; set; }
        public string is_article { get; set; }
        public string is_index { get; set; }
        public string has_video { get; set; }
        public Dictionary<string, VideoModel> videos { get; set; }
        //public VideoModel first_video
        //{
        //    get
        //    {
        //        return videos.Values.First<VideoModel>();
        //    }
        //}
        public string has_image { get; set; }
        public ImageModel image { get; set; }
        public Dictionary<string, ImageModel> images { get; set; }
        //public ImageModel first_image
        //{
        //    get
        //    {
        //        return images.Values.First<ImageModel>();
        //    }
        //}
        public string word_count { get; set; }
    }

    public class ImageModel
    {
        public string item_id { get; set; }
        public string image_id { get; set; }
        public string src { get; set; }
        public string width { get; set; }
        public string height { get; set; }
        public string credit { get; set; }
        public string caption { get; set; }
    }

    public class VideoModel
    {
        public string item_id { get; set; }
        public string video_id { get; set; }
        public string src { get; set; }
        public string width { get; set; }
        public string height { get; set; }
        public string type { get; set; }
        public string vid { get; set; }
    }
}
